package com.emspost.utils;

import com.ql.util.express.DefaultContext;
import com.ql.util.express.ExpressRunner;

public class ExpressUtil {
    public static void main(String[] args) throws Exception {
        ExpressRunner runner = new ExpressRunner();
        DefaultContext<String, Object> context = new DefaultContext<String, Object>();
        context.put("count", 22L);
        String express = "count > 3";
        boolean result = (boolean)runner.execute(express, context, null, true, false);
        System.out.println("规则计算结果：" + result);;
    }
}
